//
//  MessageService.h
//  YouthOlympic2014
//
//  Created by Li Yuhang on 14-7-2.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import "BaseService.h"
#import "Message.h"

@interface MessageService : BaseService

-(NSInteger) countUnreadMsg;

-(NSArray*/*Message*/) getAllMessages;

- (void)pushDeviceToken:(NSData*)token
             completion:(CompletionBlock)completion;

-(Message*) getMessage: (long) msgId;

-(long) addMessage:(Message*) msg;

-(BOOL) markMessageAsRead:(long) msgId;

-(void)notificationUnreadMsgCount;
@end
